# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=cawbird
pkgver=1.4.2
pkgrel=1
pkgdesc="Fork of the Corebird GTK Twitter client that continues to work with Twitter"
url="https://ibboard.co.uk/cawbird"
arch="all"
license="GPL-3.0-or-later"
depends="gst-libav"
makedepends="gtk+3.0-dev gspell-dev gst-plugins-base-dev libsoup-dev
	json-glib-dev meson ninja sqlite-dev vala rest-dev liboauth-dev"
options="!check" # Error creating directory /home/pmos/.config/cawbird: No such file or directory
source="$pkgname-$pkgver.tar.gz::https://github.com/IBBoard/cawbird/archive/v$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-lang"
_consumerkey="VmY5dG9yRFcyWk93MzJEZmhVdEk5Y3NMOA=="
_consumersecret="MThCRXIxbWRESDQ2Y0podzVtVU13SGUyVGlCRXhPb3BFRHhGYlB6ZkpybG5GdXZaSjI="

build() {
	abuild-meson -Dconsumer_key_base64="$_consumerkey" -Dconsumer_secret_base64="$_consumersecret" . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
409d2b838b9c14c45fb6aa2b04dc1ccaaf76baab7394d630d254dc9a4001f7f53321b88f600e2c3f9c39e19da38dd717f46abb4a63b11696f41e61b9ab8e6452  cawbird-1.4.2.tar.gz
"
